<script type="text/javascript">

document.getElementsByClassName = function(clsName){
    var retVal = new Array();
    var elements = document.getElementsByTagName("*");
    for(var i = 0;i < elements.length;i++){
        if(elements[i].className.indexOf(" ") >= 0){
            var classes = elements[i].className.split(" ");
            for(var j = 0;j < classes.length;j++){
                if(classes[j] == clsName)
                    retVal.push(elements[i]);
            }
        }
        else if(elements[i].className == clsName)
            retVal.push(elements[i]);
    }
    return retVal;
}

function addSmiley(dummy){
  var d = [], i=0, def = ['post-body','entry-content','comment-body'];

  for(i=0;i<def.length;i++){
	var content = document.getElementsByClassName(def[i]);
	for(var j=0;j<content.length;j++)
		d.push(content[j]);
	}

  for(i=0;i<arguments.length;i++){
	var content = document.getElementsByClassName(arguments[i]);
	for(var m=0;m<content.length;m++)
		d.push(content[m]);
  }

  for(var i=0;i<d.length;i++){
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*\)/g, ' <img src="https://sites.google.com/site/thashzone/senyum.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*\$/g, ' <img src="https://sites.google.com/site/thashzone/cool.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s;-*\)/g, ' <img src="http://lh3.ggpht.com/_9c7mAU5G_Mo/THomBlzSgjI/AAAAAAAAAbI/6iUJikHJzIE/s800/001.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*\(/g, ' <img src="https://sites.google.com/site/thashzone/nangis.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*D/g, ' <img src="https://sites.google.com/site/thashzone/nyengir.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*p/g, '<img src="https://sites.google.com/site/thashzone/tongue.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*k/g, ' <img src="http://lh4.ggpht.com/_9c7mAU5G_Mo/THopLNSZnpI/AAAAAAAAAbg/Y_q7zWGV4bQ/s800/014.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*\@/g, ' <img src="http://lh6.ggpht.com/_9c7mAU5G_Mo/THohtlJtT0I/AAAAAAAAAas/PH5BRyVoRgE/s800/mads.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*\#/g, ' <img src="https://sites.google.com/site/thashzone/sealed.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*x/g, ' <img src="https://sites.google.com/site/thashzone/oh.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*o/g, ' <img src="https://sites.google.com/site/thashzone/oeye.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:-*o/g, ' <img src="https://sites.google.com/site/thashzone/oeye.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:cd/g, ' <img src="https://sites.google.com/site/thashzone/capede.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:ngakak/g, ' <img src="http://lh5.ggpht.com/_9c7mAU5G_Mo/THoitWP5ZzI/AAAAAAAAAa8/7eKtGjnQu0I/s800/ngakak.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:marah/g, ' <img src="http://lh5.ggpht.com/_9c7mAU5G_Mo/THoitTMdIjI/AAAAAAAAAa4/py3gJM5h5K4/s800/marah.gif" style="border:0; margin:0; padding:0;" id="new" /> '); 
        d[i].innerHTML = d[i].innerHTML.replace(/\s:imalu/g, ' <img src="http://lh4.ggpht.com/_9c7mAU5G_Mo/THoitmZL6UI/AAAAAAAAAbA/bSBNR5GBeFk/s800/AddEmoticons0591.gif" style="border:0; margin:0; padding:0;" id="new" /> '); 
        d[i].innerHTML = d[i].innerHTML.replace(/\s:mewek/g, ' <img src="http://lh4.ggpht.com/_9c7mAU5G_Mo/THonFURwAQI/AAAAAAAAAbQ/S3-f3oOLs4c/s800/mewek.gif" style="border:0; margin:0; padding:0;" id="new" /> '); 
        d[i].innerHTML = d[i].innerHTML.replace(/\s:hammer/g, ' <img src="http://lh5.ggpht.com/_9c7mAU5G_Mo/THonFZtNQdI/AAAAAAAAAbU/gxzh7Yx-uPs/s800/hammer.gif" style="border:0; margin:0; padding:0;" id="new" /> '); 
        d[i].innerHTML = d[i].innerHTML.replace(/\s:d/g, ' <img src="http://lh4.ggpht.com/_9c7mAU5G_Mo/THonFldPp0I/AAAAAAAAAbY/vj8O48Nevpc/s800/hammers.gif" style="border:0; margin:0; padding:0;" id="new" /> '); 
        d[i].innerHTML = d[i].innerHTML.replace(/\s:ikaskus/g, ' <img src="http://lh6.ggpht.com/_9c7mAU5G_Mo/THopLDaH3SI/AAAAAAAAAbk/eNk716R60tQ/s800/fd_4.gif" style="border:0; margin:0; padding:0;" id="new" /> '); 
        d[i].innerHTML = d[i].innerHTML.replace(/\s:ibingung/g, ' <img src="http://lh5.ggpht.com/_9c7mAU5G_Mo/THorE0xHxjI/AAAAAAAAAb0/1jiLEDP8X6s/s800/bingungs.gif" style="border:0; margin:0; padding:0;" id="new" /> '); 
        d[i].innerHTML = d[i].innerHTML.replace(/\s:bingung/g, ' <img src="http://lh3.ggpht.com/_9c7mAU5G_Mo/THorEf2XkqI/AAAAAAAAAbw/j2xBGPy-hOw/s800/bingung.gif" style="border:0; margin:0; padding:0;" id="new" /> '); 
        d[i].innerHTML = d[i].innerHTML.replace(/\s:lovekaskus/g, ' <img src="http://lh4.ggpht.com/_9c7mAU5G_Mo/THorEDABiWI/AAAAAAAAAbs/C1wHvq2IfaA/s800/s_sm_ilovekaskus.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:malu/g, ' <img src="http://lh4.ggpht.com/_9c7mAU5G_Mo/THorFdSg5vI/AAAAAAAAAb4/W5bUH5ehN04/s800/malu.gif" style="border:0; margin:0; padding:0;" id="new" /> ');                  
        d[i].innerHTML = d[i].innerHTML.replace(/\s:top/g, ' <img src="http://lh4.ggpht.com/_9c7mAU5G_Mo/THotwtNnIqI/AAAAAAAAAcE/pbh7lcgMii0/s800/jempol1.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:mantap/g, ' <img src="http://lh6.ggpht.com/_9c7mAU5G_Mo/THotwueV6fI/AAAAAAAAAcI/jEIoQBFyDtM/s800/jempol2.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:maho/g, ' <img src="http://lh3.ggpht.com/_9c7mAU5G_Mo/THotwyvJS0I/AAAAAAAAAcM/7PKW4SNwldc/s800/s_sm_maho.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:takut/g, ' <img src="http://lh3.ggpht.com/_9c7mAU5G_Mo/THotxOtIJaI/AAAAAAAAAcQ/DePEbq8bUes/s800/takut.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:itakut/g, ' <img src="http://lh4.ggpht.com/_9c7mAU5G_Mo/THotxZKkBuI/AAAAAAAAAcU/NG-MleaILVM/s800/takuts.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:ipeace/g, ' <img src="https://sites.google.com/site/thashzone/peace.gif" style="border:0; margin:0; padding:0;" id="new" /> ');
        d[i].innerHTML = d[i].innerHTML.replace(/\s:cendol/g, ' <img src="http://lh5.ggpht.com/_9c7mAU5G_Mo/THowKhIon9I/AAAAAAAAAcc/4T4L5KNU41g/s800/toastcendol.gif" style="border:0; margin:0; padding:0;" id="new" /> ');    
    }
}

</script>